<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>默认文件上传DEMO</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

<!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<script src="http://res.easywan.info/public/static/js/jquery-3.2.1.min.js"></script>
 
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
 
</head>
<body>
	<form action="/videoUploadServlet.do" enctype="multipart/form-data" method="post">
		 <div class="row">
		
		<div class="col-xs-10 col-xs-offset-1">
		<h2>工具区</h2>
			<div class="form-group">
    	<label for="pwd">填写密码:</label>
    	<input type="text" class="form-control" name="pwd" id="pwd" placeholder="加密密码">
  </div><div class="form-group">
    	<label for="des">解密(加密请不要填写，解密请填写des):</label>
    	<input type="text" class="form-control" name="des" id="des" placeholder="des">
  </div>
  
  <div class="form-group">
    <label for="exampleInputFile">点击上传视频</label>
    <input type="file" id="file" name="file1">
    <p class="help-block"></p>
  </div>
  <button id="start" type="submit" class="btn btn-default">确认加密/解密</button>
	</div>
	</div>
	</form>
	<div class="row">
		<div class="col-xs-10 col-xs-offset-1">
		<h2>结果区</h2>
			你压缩后的文件为<a target="_bank" href="videoGet.do?des=des&fileName=${fileRealName }">${fileName }</a>点击下载！！！
		</div>
	</div>
</body>
</html>